<!--
/* * * * * * * * * * * * * * * * *
                  *
Author : rasya
Email : syaiflash@gmail.com
URL : http://syaiflash.blogspot.com
* * * * * * * * * * * * * * * * *
                  *
// 
* * * * * * * * * * * * * * * * *
                  */
var lokal = new Array();
lokal=new Array ('Banjar',-7.88,111.48,7);
var imsyak = 0;
var shubuh = 0;
var dzuhur = 0;
var ashar = 0;
var maghrib = 0;
var isya = 0;
function waktu(nomer) {
jam = Math.floor(nomer);
menit = Math.floor((nomer-jam)*60);
detik = Math.floor(((nomer-jam)*3600)-(menit*60));
if(jam<10) jam='0'+jam;
if(detik>30) detik=1;
menit=menit+detik;
if(menit<10) menit='0'+menit;
return jam+':'+menit;
}
var tanggal = 0;
var bulan = 0;
var tahun = 0;
KisniWenRu = new Date();
tanggal = KisniWenRu.getDate();
bulan = KisniWenRu.getMonth();
tahun = KisniWenRu.getFullYear();
a = (Date.UTC(tahun,bulan,tanggal,0,0,0)-Date.UTC(tahun,0,1,0,0,0))/1000/60/60/24;
b = ((2*Math.PI)*a)/365;
c = (180/Math.PI)*(0.006918-(0.399912*Math.cos(b))+
(0.070257*Math.sin(b))-(0.006758*Math.cos(2*b))+
(0.000907*Math.sin(2*b))-(0.002697*Math.cos(3*b))+
(0.001480*Math.sin(3*b)));
d = 229.18*(0.000075+(0.001868*Math.cos(b))-(0.032077*Math.sin(b))-
(0.014615*Math.cos(2*b))-(0.040849*Math.sin(2*b)));
e = 12+(((lokal[3]*15)-lokal[2])/15)-(d/60);
f = (180/(15*Math.PI))*Math.acos((-Math.sin(1*(Math.PI/180))-
Math.sin(c*(Math.PI/180))*Math.sin(lokal[1]*(Math.PI/180)))/
(Math.cos(c*(Math.PI/180))*Math.cos(lokal[1]*(Math.PI/180))));
g = (180/(15*Math.PI))*Math.acos((-Math.sin(20*(Math.PI/180))-
Math.sin(c*(Math.PI/180))*Math.sin(lokal[1]*(Math.PI/180)))/
(Math.cos(c*(Math.PI/180))*Math.cos(lokal[1]*(Math.PI/180))));
h = (180/(15*Math.PI))*Math.acos((-Math.sin(18*(Math.PI/180))-
Math.sin(c*(Math.PI/180))*Math.sin(lokal[1]*(Math.PI/180)))/
(Math.cos(c*(Math.PI/180))*Math.cos(lokal[1]*(Math.PI/180))));
i = (180/(15*Math.PI))*Math.acos((Math.sin(Math.atan(1/
(1+Math.tan(Math.abs(lokal[1]-c)*(Math.PI/180)))))-
Math.sin(c*(Math.PI/180))*Math.sin(lokal[1]*(Math.PI/180)))/
(Math.cos(c*(Math.PI/180))*Math.cos(lokal[1]*(Math.PI/180))));
imsyak = waktu(e-g-(1/6));
shubuh = waktu(e-g);
dzuhur = waktu(e+(1/15));
ashar = waktu(e+i);
maghrib = waktu(e+f);
isya = waktu(e+h);
document.write("Imsyak : " + imsyak + "<br>Shubuh : " + shubuh + "<br>Dzuhur : " + dzuhur + "<br>Ashar : " + ashar + "<br>Maghrib : " + maghrib + "<br>Isya : " + isya);
//-->